<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="./images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="./images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />

<link href="./images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<title></title>
</head>
<body class="body_ifm">
<div class="infoboxp">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">该页面展示了订单详情。</div>
</div>
</div>

<div class="tag_box mt10">
	<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
	<form name="myform" target="supportiframe" action="index.php?m=company_order&c=save" method="post" id="myform" onSubmit="return check_form();">
    <input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
    
    
		<table width="100%" class="table_form  " > 
          <tr>
              <td colspan="2" bgcolor="#f0f6fb"><div class="admin_bold">订单详情</div></td>
            </tr>
			<tr>
				<th width="120">订单号：</th>
				<td><div class="yun_admin_divh">{yun:}$row.order_id{/yun}</div></td>
			</tr>
			<tr class="admin_table_trbg">
				<th>申请交易时间：</th>
				<td><div class="yun_admin_divh">{yun:}$row.order_time|date_format:"%Y-%m-%d %H:%M:%S"{/yun}</div></td>
			</tr>
			<tr>
				<th>用户名：</th>
				<td><div class="yun_admin_divh">{yun:}if $row.type==3||$row.order_type=='bank'{/yun}{yun:}$row.comname{/yun}+{yun:}/if{/yun}{yun:}$row.username{/yun}</div></td>
			</tr>
			{yun:}if $coupon.id{/yun}
			<tr>
				<th>订单金额：</th>
				<td><div class="yun_admin_divh">{yun:}$row.price{/yun}元</div>
				</td>
			</tr>
			<tr>
				<th>优惠券金额：</th>
				<td><div class="yun_admin_divh">{yun:}$coupon.coupon_amount{/yun}元
				<input name='coupon_amount' value="{yun:}$coupon.coupon_amount{/yun}" type="hidden"/></div>
				</td>
			</tr>
			{yun:}/if{/yun}
			<tr class="admin_table_trbg">
				<th>{yun:}if $row.type==1{/yun}待付{yun:}else{/yun}付款{yun:}/if{/yun}金额：</th>
				<td>
				<div class="yun_admin_divh">{yun:}if $row.order_state==1||$row.order_state==3{/yun}
				<input type="text" name="order_price" id="order_price" class="input-text" size="10" value="{yun:}$row.order_price{/yun}" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')">{yun:}else{/yun}<input name='order_price' value='{yun:}$row.order_price{/yun}' type='hidden'/>{yun:}$row.order_price{/yun}{yun:}/if{/yun}元</div>
				</td>
			</tr>
            {yun:}if $row.type==3||$row.order_type=='bank'{/yun} 
			<tr class="admin_table_trbg">
            	<th>汇款银行：</th>
				<td><div class="yun_admin_divh">{yun:}$row.bankname{/yun}</div></td>
			</tr> 
			<tr class="admin_table_trbg">
                <th>汇入账号：</th>
				<td><div class="yun_admin_divh">{yun:}$row.bankid{/yun}</div>
				</td>
			</tr> 
			<tr class="admin_table_trbg">
                <th>汇款金额：</th>
				<td><div class="yun_admin_divh">{yun:}$row.order_price{/yun}元</div>
				</td>
			</tr> 
            {yun:}/if{/yun}
			<tr class="admin_table_trbg">
				<th>备注：</th>
				<td height="36">
			   {yun:}if $row.order_state==1||$row.order_state==3{/yun}<textarea name="order_remark" id="order_remark" rows="3" cols="50" class="text">{yun:}$row.order_remark{/yun}</textarea>{yun:}else{/yun}{yun:}$row.order_remark{/yun}<input name='order_remark' value='{yun:}$row.order_remark{/yun}' type='hidden'/>{yun:}/if{/yun}
				</td>
			</tr>
		<tr >
				<th>订单类型：</th>
				<td> 
					<div class="yun_admin_divh">{yun:}$row.type_n{/yun}</div>
				</td>
			</tr>
			{yun:}if $row.type=='2'{/yun}
			<tr class="admin_table_trbg">
				<th>所得{yun:}$config.integral_pricename{/yun}：</th>
				<td>{yun:}$row.integral{/yun}</td>
			</tr>	
			{yun:}/if{/yun}
            {yun:}if $row.type=='3'||$row.order_type=='bank'{/yun}
			<tr class="admin_table_trbg">
				<th>上传汇款单：</th>
				<td>
					{yun:}if $row.order_state==1||!$row.order_pic{/yun}
					未上传汇款单
					{yun:}else{/yun}
					<div id="hkd">
						<img layer-pid="" src="{yun:}$row.order_pic{/yun}" layer-src="{yun:}$row.order_pic{/yun}" alt="汇款单" width="160px" height="60px">
					</div>
					<span class="admin_web_tip">提示：点击图片可以查看大图,如图片仍看不清，请在图片上右击鼠标，选择“在新标签页中打开图片”或“图片另存为”</span>
					{yun:}/if{/yun}
				</td>
			</tr>	
			{yun:}/if{/yun} 
		<tr>
			<th>&nbsp;</th>
			<td > 
				<input name="id" type="hidden" value="{yun:}$row.id{/yun}">
				{yun:}if $row.order_state==1||$row.order_state==3{/yun}<input class="admin_button" name="hotup" type="submit" value="修改" id="dosubmit">{yun:}/if{/yun} 
				<input class="admin_button" name="" type="button" value="返回" onclick="javascript:history.go(-1);">
                {yun:}if $row.order_state==1||$row.order_state==3{/yun}<input class="admin_button" type="button" value="确认" onclick="layer_del('确认该订单将充值到用户帐户，是否确定？', 'index.php?m=company_order&c=setpay&id={yun:}$row.id{/yun}');">{yun:}/if{/yun}
			</td>
		</tr> 
		 </table>
	 </form>
</div>
</div>
<div id="orderpic" style="display:none;">
<img src="{yun:}$row.order_pic{/yun}" width="600px" height="400px">
</div>

<script>

layui.use('layer', function(){
	var layer = layui.layer;
  
	layer.photos({
		photos: '#hkd'
	});
}); 
function check_form(){
	var order_price=$("#order_price").val();
	if(order_price==''){ 
		parent.layer.msg('待付金额不能为空！', 2, 8);
		return false;
	}
} 
function replace_type(){$('#invoice').toggle();}
</script>
</body>
</html>